﻿using System.Collections.Generic;
using System.Linq;

namespace IBBI.DataBase.Enumeration {

    public class CategoryTypes {

        public static readonly CategoryType Page      = new CategoryType(0,  "Page",      "单页面分类");
        public static readonly CategoryType Article   = new CategoryType(1,  "Article",   "文章分类");
        public static readonly CategoryType Vedio     = new CategoryType(2,  "Vedio",     "视频分类");
        public static readonly CategoryType Equipment = new CategoryType(3,  "Equipment", "设备分类");

        public static readonly List<CategoryType> All = 
            new List<CategoryType> {
                Page, 
                Article, 
                Vedio, 
                Equipment
            };

        public static readonly Dictionary<int, CategoryType> Index = 
            All.ToDictionary(item => item.Id)
        ;
    }
}